package com.fc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author 张非
 * @since 2023-07-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysUser对象", description="")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Excel(name = "id", width = 15)
    private String id;

    @ApiModelProperty(value = "用户名")
    @Excel(name = "用户名", width = 15)
    private String username;

    @ApiModelProperty(value = "真实姓名")
    @Excel(name = "真实姓名", width = 15)
    private String realname;

    @ApiModelProperty(value = "密码")
    @Excel(name = "密码", width = 15)
    private String password;

    @ApiModelProperty(value = "盐")
    @Excel(name = "盐", width = 15)
    private String salt;

    @ApiModelProperty(value = "头像")
    @Excel(name = "头像", width = 15)
    private String avaotr;

    @ApiModelProperty(value = "生日")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Excel(name = "生日", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    private Date birthday;

    @ApiModelProperty(value = "性别")
    @Excel(name = "性别", width = 15)
    private Integer sex;

    @ApiModelProperty(value = "邮箱")
    @Excel(name = "邮箱", width = 15)
    private String email;

    @ApiModelProperty(value = "电话")
    @Excel(name = "电话", width = 15)
    private String phone;

    @ApiModelProperty(value = "地址")
    @Excel(name = "地址", width = 15)
    private String address;

    @ApiModelProperty(value = "状态（1启用 0不启用）")
    @Excel(name = "状态（1启用 0不启用）", width = 15)
    private Integer status;

    @ApiModelProperty(value = "删除标志")
    @Excel(name = "删除标志", width = 15)
    private Integer delFlag;


}
